import 'package:json_annotation/json_annotation.dart';

part 'coupon_category.g.dart';

@JsonSerializable()
class CouponCategory extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'type')
  String type;

  CouponCategory(
    this.id,
    this.name,
    this.type,
  );

  factory CouponCategory.fromJson(Map<String, dynamic> srcJson) =>
      _$CouponCategoryFromJson(srcJson);
}
